const wifi = {
  namespaced: true,
  state: {
    devInfoRes: null,
    deviceEventRes: null,
    deviceVersionRes: null,
    devCacheAllRes: null
  },
  getters: {
    getDevInfoRes(state) {
      return state.devInfoRes;
    },
    getDeviceEventRes(state) {
      return state.deviceEventRes;
    },
    getDeviceVersionRes(state) {
      return state.deviceVersionRes;
    },
    getDevCacheAllRes(state) {
      return state.devCacheAllRes;
    }
  },
  mutations: {
    setDevInfoRes(state, data) {
      state.devInfoRes = data;
    },
    setDeviceEventRes(state, data) {
      state.deviceEventRes = data;
    },
    setDeviceVersionRes(state, data) {
      state.deviceVersionRes = data;
    },
    setDevCacheAllRes(state, data) {
      state.devCacheAllRes = data;
    }
  },
  actions: {
    setDevInfoRes(context, data) {
      context.commit('setDevInfoRes', data);
    },
    setDeviceEventRes(context, data) {
      context.commit('setDeviceEventRes', data);
    },
    setDeviceVersionRes(context, data) {
      context.commit('setDeviceVersionRes', data);
    },
    setDevCacheAllRes(context, data) {
      context.commit('setDevCacheAllRes', data);
    }
  }
}

export default wifi;
